package com.study.example.domain.OneToOne;

import javax.persistence.*;

/**
 * Created by User on 2017/9/15.
 */
@Entity
public class WareDetail {
    @Id
    Long id;

    @OneToOne@MapsId
    Ware ware;

    String detail;

    Integer number;

}
